<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Sys_ConfigManager
 *
 * @author Eliu
 */
class Sys_ConfigManager {

    public static $db;

    public static function getParameter($name = "") {
        $r = self::$db->queryToArray(sprintf("SELECT * FROM cllg_system_param WHERE NAME='%s'", $name));
        if (count($r > 0)) {
            return $r[0]["VALUE"];
        }
        return null;
    }

    public static function getMeses() {
        return array(1 => "Enero", 2 => "Febrero", 3 => "Marzo", 4 => "Abril", 5 => "Mayo"
            , 6 => "Junio", 7 => "Julio", 8 => "Agosto", 9 => "Septiembre", 10 => "Octubre", 11 => "Noviembre", 12 => "Diciembre");
    }

    public static function getTiposCargos() {
        return array("M" => "Mensualidad", "I" => "Inscripcion");
    }

}

?>
